<?php
/* @var $this FeedbackController */
/* @var $model Feedback */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'feedback-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>
<?php 
   // $uid=Yii::app()-user-id;
//	$userid=(String)$uid;
	//$sql='select * from zy_user where user_id='.$uid;
	//$rs=yii::app()->db->createCommand($sql)->queryAll();;

?>

<p class="note"><?php echo Yii::t('base','Fields with <span class="required">*</span> are required.');?></p>

	<?php echo $form->errorSummary($model); ?>



	<div class="row">
		<?php echo $form->labelEx($model,'webname'); ?>
		<?php echo $form->textField($model,'webname',array('size'=>50,'maxlength'=>50,readonly=>true)); ?>
		<?php echo $form->error($model,'webname'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'webvideo'); ?>
		<?php echo $form->textField($model,'webvideo',array('size'=>50,'maxlength'=>50,readonly=>true)); ?>
		<?php echo $form->error($model,'webvideo'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'create_user'); ?>
		<?php echo $form->textField($model,'create_user',array('size'=>50,'maxlength'=>50,readonly=>true)); ?>
		<?php echo $form->error($model,'create_user'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'create_time'); ?>
		<?php echo $form->textField($model,'create_time',array('size'=>50,'maxlength'=>50,readonly=>true)); ?>
		<?php echo $form->error($model,'create_time'); ?>
	</div>

	<div class="row">
		<?php //echo $form->labelEx($model,'update_time'); ?>
		<?php //echo $form->textField($model,'update_time',array('value'=>$model->update_time=='0000-00-00 00:00:00'?date("Y-m-d H:i:s",strtotime("+7 days")):$model->update_time)?>
		<!-- <input type="text" id="update_time" name="Feedback[update_time]" size="20" value="<?php echo $model->update_time=='0000-00-00 00:00:00'?date("Y-m-d H:i:s",strtotime("+7 days")):$model->update_time;?>" onClick="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" " style="width:245px;" /> -->
		<?php //echo $form->error($model,'update_time'); ?>
	</div>



	<div class="row">
		<?php //echo $form->labelEx($model,'update_user'); ?>
		<?php //echo $form->textField($model,'update_user',array('value'=>$rs[0]['user_name'])); ?>
		<?php //echo $form->error($model,'update_user'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'status'); ?>
		<?php echo $form->dropDownList($model,'status',array(0=>Yii::t('base','Unfinished'),1=>Yii::t('base','Finished'))); ?>
		<?php echo $form->error($model,'status'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'consequence'); ?>
		<?php echo $form->textArea($model,'consequence',array('size'=>300,'maxlength'=>1000)); ?>
		<?php echo $form->error($model,'consequence'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? Yii::t('base','Create') : Yii::t('base','Save')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->